class Player(object):
    def __init__(self, name, age):  # 构造函数（初始化函数）
        self.name = name
        self.age = age


jack = Player('jack', 18)
print(jack.name, jack.age)
jack.height = 188
print(jack.__dict__)  # 获取实例的所有属性
